package com.tan.po2;

public class UserService {
        private UserDao userDao;
        public void save(){
            System.out.println("service层保存方法");
            userDao.save();
        }

        public UserService(UserDao userDao) {
            this.userDao = userDao;
        }

        public UserService() {
        }

        public void setUserDao(UserDao userDao) {
            this.userDao = userDao;
        }
    }
